#include "data_statistics_widget.h"
#include "ui_data_statistics_widget.h"

#include <QTextCodec>
#include <qtextcodec.h>



DataStatisticsWidget::DataStatisticsWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DataStatisticsWidget)
{
    ui->setupUi(this);
    connect(ui->record_widget,SIGNAL(signOtherChart(QString,QMap<QString , int>)),this,SIGNAL(signOtherChart(QString,QMap<QString , int>)));
    connect(ui->customer_record_widget,SIGNAL(signOtherChart(QString,QMap<QString , int>)),this,SIGNAL(signOtherChart(QString,QMap<QString , int>)));
}

DataStatisticsWidget::~DataStatisticsWidget()
{
    delete ui;
}

void DataStatisticsWidget::on_record_btn_clicked()
{
    ui->stackedWidget->setCurrentIndex(0);
}

void DataStatisticsWidget::on_customer_data_btn_clicked()
{
    ui->stackedWidget->setCurrentIndex(1);
}
